<?php 
/**
 * 车辆数据模型model类
 * @Author    紫梦
 * @DateTime  2018-02-06
 * @copyright 响响租车
 * @version   1.0
 */
namespace app\common\model;
use think\Model;

class CarsInfo extends Model
{

    public function Cars()
    {
        return $this->hasOne('Cars','car_unique_id','car_unique_id')->field('car_id,car_sn,car_unique_id,sim_card,agency_id,brand_id')->joinType('LEFT');
    }
}